#include "../inc/skyFile.h"

namespace Sky
{
	File::File()
	{
		_bOpen = FALSE ;
	}

	File::~File()   
	{	
		close();
	}

	FilePtr DiskManager::createFile( String* name,File::OpenMode flag/*= File::modeReadWrite | File::modeCreate*/ )
	{
		FilePtr file = skynew (File());
		file->open(name,flag);
		return file;
	}

}
